//
//  AboutViewController.m
//  Everest
//
//  Created by 刘宇文 on 14-12-30.
//  Copyright (c) 2014年 ThreeL. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@property (nonatomic, retain) UITextView *textView;

@end

@implementation AboutViewController

- (void)dealloc
{
    [_textView release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.title = @"关于";
    
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
    scrollView.contentSize = CGSizeMake(0, self.view.bounds.size.height + 1);
    [self.view addSubview:scrollView];
    [scrollView release];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.view.bounds.size.width / 2 - 32, 30, 64, 64)];
//    imageView.backgroundColor = [UIColor redColor];
    imageView.image = [UIImage imageNamed:@"icon29pt@3x.png"];
    [scrollView addSubview:imageView];
    [imageView release];
    
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100,  30)];
    label.center = CGPointMake(self.view.bounds.size.width / 2, 110);
    label.textAlignment = 1;
    label.text = @"悦享听v1.0";
    [scrollView addSubview:label];
    [label release];
    
    NSString *str = [NSString stringWithFormat:@"制作团队: 李其昌  刘宇文  刘成博\n联系我们: 18698643404\n联系邮箱: liqichang_4869@163.com\n                    Logo by   葛展\n\n   Enjoy Audio 享受世界, 享受生活\n"];
    
    self.textView = [[UITextView alloc] initWithFrame:CGRectMake(30, 150, self.view.bounds.size.width - 60, self.view.bounds.size.height - 300)];
    self.textView.font = [UIFont systemFontOfSize:17];
    self.textView.backgroundColor = [UIColor whiteColor];
    self.textView.text = str;
    [scrollView addSubview:self.textView];
    self.textView .autoresizingMask = UIViewAutoresizingFlexibleHeight;
    self.textView.scrollEnabled = YES;
    self.textView.editable = NO;
    [_textView release];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
